<template>
  <div class="microPhone">
    <div class="micBox">
      <div class="positionBox">
        <div class="mic" :style="{ height: volume + '%' }"></div>
      </div>
    </div>
    <img src="@/assets/cfRoom/images/onAudio.png" alt="">

  </div>
</template>

<script>
export default {
  name: 'microPhone',
  props: {
    volume: {
      require: String | Number,
      default: 0
    }
  }
}
</script>

<style scoped lang="scss">
.microPhone {
  position: relative;
  width: 100%;
  height: 100%;

  .micBox {
    position: absolute;
    width: 31.25%;
    height: 59.375%;
    border-radius: 32%;
    left: 34.375%;
    bottom: 34.375%;
    overflow: hidden;

    .positionBox {
      position: relative;
      width: 100%;
      height: 100%;
      .mic {
        position: absolute;
        width: 100%;
        bottom: 0;
        transition: all 0.1s;
        max-height: 100%;
        background-color: limegreen;
      }
    }
  }

  img{
    vertical-align: top;
    width: 100%;
    height: 100%;
  }
}
</style>
